﻿<%template _header%>
<%namespace YouHP.Model%>
<%namespace YouHP.BLL%>
<%namespace YouHP.Model.Group%>
<%namespace YouHP.Utility%>
<%namespace System.Collections.Generic%>

<div class="layout-cols2">
	
	<div class="col1">
	
<%csharp%>TempUrl = ModuleCtrl.Header4("GroupList","论坛列表",false,false); <%/csharp%>
{TempUrl}			
<div class="boardlist">
<%csharp%>
foreach(GroupInfo item in GroupList)
{

<%/csharp%>
<div  onmouseover="this.className='groupnav'" onmouseout="this.className='groupnav1'" class="groupnav1">

<div>
<div style="float:left; margin-right:10px;">
<div class ="img_box">
<%csharp%>TempUrl = "/BBS/Board.aspx?gid=" + item.Id;<%/csharp%>
<a href ="{this.GetUrl(TempUrl)}" class="user_img"><img src ="{item.Logo}" width ="50px" height ="50px" alt="圈子" /></a>
</div></div>

<div class ="group_info">

<%csharp%>TempUrl = "/BBS/Board.aspx?gid=" + item.Id;<%/csharp%>
<b><a href ="{this.GetUrl(TempUrl)}"><span>{item.GroupName}</span></a></b>

<ol>
<%csharp%>
List<string> namearray = new List<string>();
List<int> idarray = new List<int>();
if(item.Moderators != "")
{
        string[] array = item.Moderators.Split('@');
        for(int i=0;i < array.Length;i++)
        { 
            string[] array2 = array[i].Split(';');

            namearray.Add(array2[0]);
            idarray.Add(Convert.ToInt32(array2[1]));


        }
}        
string[] names = namearray.ToArray();
int[] ids = idarray.ToArray();

<%/csharp%>


<li>版主:
<%csharp%>for(int j=0;j < names.Length;j++) {<%/csharp%>

<%csharp%>TempUrl = "/Profile/Index.aspx?uid=" + ids[j];<%/csharp%>
<a href ="{this.GetUrl(TempUrl)}">
<em>{names[j]}&nbsp;&nbsp;</em></a>

<%csharp%>}<%/csharp%>
</li>


<li> &nbsp;帖子数：<em>{item.TopicNum}</em></li><li> &nbsp;点击次数：<em>{item.Hits}</em></li>
</ol>
<br />
<p>最新发表：
<%csharp%> if(item.LastTopicId > 0) {  TempUrl = "/BBS/Topic.aspx?gid=" + item.Id + "&tid=" + item.LastTopicId; <%/csharp%>
<a href="{this.GetUrl(TempUrl)}" target="_blank"><em><%if item.LastTopicTitle.Length>15%>{item.LastTopicTitle.Substring(0,15)}...<%else%>{item.LastTopicTitle}<%/if%></em></a>&nbsp;&nbsp;

<%csharp%>TempUrl = "/Profile/Index.aspx?uid=" + UserBLL.Instance.GetUserInfo(item.LastPostUser).Id;<%/csharp%>
作者：<a href="{this.GetUrl(TempUrl)}" target="_blank"><em>{item.LastPostUser}</em></a>&nbsp;&nbsp;


时间：<em>{item.LastPostTime.ToString("yyyy-MM-dd")}</em>
<%csharp%>} else {<%/csharp%>
暂无
<%csharp%>} <%/csharp%>
</p>

</div>

</div>
<div style="clear:both;"></div>
<div style="border-top:1px dotted #CCCCCC; padding:0px 5px;"><span><b>简介：</b>{item.Introduction}</span></div>
</div>
<%csharp%>
}
<%/csharp%>
</div>


			<div style="padding:5px;">
				<div class="pages">
					{PagingString}
				</div>
			</div>

<%csharp%>TempUrl = ModuleCtrl.Footer("GroupList"); <%/csharp%>
{TempUrl}
		

		
	</div>
	
	<div class="col2">

        <%csharp%> if(GroupData != null && GroupData.Id > 0) { <%/csharp%>
<%csharp%>TempUrl = ModuleCtrl.Header4("CommentBroad","推荐版块",true,false); <%/csharp%>
{TempUrl}
            
            <div class="content">
                <%csharp%>TempUrl = "/BBS/Board.aspx?gid=" + GroupData.Id;<%/csharp%>
                <li><a href="{this.GetUrl(TempUrl)}">{GroupData.GroupName}</a>
            </div>

 <%csharp%>TempUrl = ModuleCtrl.Footer("CommentBroad"); <%/csharp%>
 {TempUrl}       
        <%csharp%> } <%/csharp%>
        
        
    <%template _ActionLatest%>  
   <%template _TopicHottest%>
    <%template _TopicLatest%>    

		
	</div>
	
</div>

<%template _footer%>		
